package com.iyohei.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.iyohei.entry.User;

@Mapper
public interface UserMapper {
	
	@Select("select * from user where id = #{id}")
	public User getById(long id);
	
	@Delete(" delete from user where id = #{id}")
	public long deleteById(long id);
}
